package mcdevitt.id.projects;




public class Card {
	private String suit;
	private String face;
	
//assigns a value to a card
	public int getTrueValue(int handValue){
		int i=0;
		if (face=="J"||face=="Q"||face=="K"){
			i=10;
		}
		else if(face=="A"){
			if(handValue>11){
				i=1;
		}
			else{
				i=11;
		}
			
	}
		
		else {
			i=Integer.parseInt(face);
		}
		return i;
	}

	public String getSuit() {
		return suit;
	}

	public void setSuit(String suit) {
		this.suit = suit;
	}

	public String getFace() {
		return face;
	}

	public void setFace(String face) {
		this.face = face;
	}

	

	

	

}
